package obj;

import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.net.SocketAddress;

import server.MessageReader;

public class Piped {
    private boolean responseSent ;
	private SocketAddress socAddr;
	private PipedOutputStream os ;
    private PipedInputStream is;
    private MessageReader mreader ;
    
	public void setMreader(MessageReader mreader) {
		this.mreader = mreader;
		this.responseSent = false;
	}
	public MessageReader getMreader() {
		return mreader;
	}
	public void setOs(PipedOutputStream os) {
		this.os = os;
	}
	public PipedOutputStream getOs() {
		return os;
	}
	public void setIs(PipedInputStream is) {
		this.is = is;
	}
	public PipedInputStream getIs() {
		return is;
	}
	public void setSocAddr(SocketAddress socAddr) {
		this.socAddr = socAddr;
	}
	public SocketAddress getSocAddr() {
		return socAddr;
	}

	public void setResponseSent() {
		this.responseSent = true;
	}
	public boolean isResponseSent() {
		return responseSent;
	}
}
